﻿using System;
using System.Windows.Input;

namespace MessageBoxWPF
{
    public abstract class BaseCommand<T> : ICommand
    {
        protected readonly T _vm;

        protected BaseCommand(T vm) { _vm = vm; }

        public event EventHandler CanExecuteChanged;

        public virtual bool CanExecute(object parameter) { return true; }
        public abstract void Execute(object parameter);
    }
}
